package com.llxy.worker.domain;

import com.llxy.common.core.domain.BaseEntity;

import java.io.Serializable;
import java.util.Date;

public class Homemaking extends BaseEntity implements Serializable {
    private Integer id;

    /**
    * 公司简介
    */
    private String intro;

    /**
    * 家政公司名称
    */
    private String name;

    /**
    * 联系人
    */
    private String person;

    /**
    * 联系人电话
    */
    private String phone;

    /**
    * 所在地区
    */
    private String address;

    /**
     * logo
     */
    private String avatar;

    private Long userId;

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro == null ? null : intro.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person == null ? null : person.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Homemaking() {
    }

    public Homemaking(Integer id, String intro, String name, String person, String phone, String address, String avatar) {
        this.id = id;
        this.intro = intro;
        this.name = name;
        this.person = person;
        this.phone = phone;
        this.address = address;
        this.avatar = avatar;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", intro=").append(intro);
        sb.append(", name=").append(name);
        sb.append(", person=").append(person);
        sb.append(", phone=").append(phone);
        sb.append(", address=").append(address);
        sb.append(", createBy=").append(getCreateBy());
        sb.append(", createTime=").append(getCreateTime());
        sb.append(", updateBy=").append(getUpdateBy());
        sb.append(", updateTime=").append(getUpdateTime());
        sb.append("]");
        return sb.toString();
    }
}